import java.util.Scanner;

/**
   Reads a string, reverses the order the characters within the
   string, and prints out the result.
   Input: the value of s, a string
   Output: the string reversed
*/
public class ReverseString
{
   public static void main(String[] args)
   {
      Scanner in = new Scanner(System.in);
      String s = in.nextLine();

      String reversed = "";

      // your work here    
      int l = s.length();
      for(int i = l-1;i>=0;i--)
      reversed += s.charAt(i);
      
      System.out.println(reversed);
   }
}